package user;

import book.BookList;
import operation.IOPeration;

public abstract class User {
    protected String name;
    public IOPeration[] ioPerations;//并没有初始化大小，而且没有直接初始化

    public User(String name) {
        this.name = name;
    }
    //不想有具体的实现的话就使用absract方法变成一个抽象类
    public  abstract int menu();
    public void doOperation(int choice, BookList bookList){
        ioPerations[choice].work(bookList);

    }

}
